﻿CREATE TABLE [dbo].[TB_Historico] (
    [Sysid]             INT      IDENTITY (1, 1) NOT NULL,
    [SysRendicion]      INT      NULL,
    [FechaEntrada]      DATETIME NULL,
    [FechaSalida]       DATETIME NULL,
    [SysResponsable]    INT      NULL,
    [SysEstado]         INT      NULL,
    [SysUsuarioIngreso] INT      NULL,
    CONSTRAINT [PK_TB_Historico] PRIMARY KEY CLUSTERED ([Sysid] ASC),
    CONSTRAINT [FK_TB_Historico_TB_Rendiciones] FOREIGN KEY ([SysRendicion]) REFERENCES [dbo].[TB_Rendiciones] ([Sysid])
);

